package com.blockmeta.bbs.immodule.net.api;

import com.blockmeta.bbs.businesslibrary.net.pojo.BaseImResponse;

import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author AirThor
 * @date 2019/4/15.
 * 添加好友
 */
public interface AddFriendApi {
    /**
     * @see "https://gitee.com/btc8/appserver/wikis/IM?sort_id=1348722#38-%E7%94%B3%E8%AF%B7%E5%8A%A0%E5%A5%BD%E5%8F%8B-useraddfriends-get"
     * @param userId uid
     * @param friendsId 要加的人的 ID
     * @param requestMsg 请求信息
     * @return
     */
    @GET("im/user/addFriends")
    Flowable<BaseImResponse<Object>> addFriend(@Query("userId") int userId, @Query("friendsId") int friendsId, @Query("requestMsg") String requestMsg);
}
